package viper

import (
	"github.com/spf13/viper"
	"log"
	"order-srv/basic/inits"
)

func InitViper() {
	viper.SetConfigFile("../../order.yaml")
	viper.ReadInConfig()
	viper.Unmarshal(&inits.Config)

	log.Println("配置文件获取成功", inits.Config)
}
